projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e400f6
)
(compute_motion): When invisible text cross TO,
author
Richard M. Stallman
<rms@gnu.org>
Sun, 3 May 1998 04:33:27 +0000
(
04:33
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 3 May 1998 04:33:27 +0000
(
04:33
+0000)
return TO, not the start of the invisible text.
src/indent.c
patch
|
blob
|
history
diff --git
a/src/indent.c
b/src/indent.c
index 4d4f4b4b0cae0deba9bcecfcc5eb83cb726ffffa..639cfdae818382de925fa2d9ee20d8a95b4255f4 100644
(file)
--- a/
src/indent.c
+++ b/
src/indent.c
@@
-1121,7
+1121,10
@@
compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
newpos = skip_invisible (pos, &next_boundary, to, window);
if (newpos >= to)
- goto after_loop;
+ {
+ pos = min (to, newpos);
+ goto after_loop;
+ }
if (newpos != pos_here)
{